// 1. 手机号校验
const mobileRules = [
  { required: true, message: '手机号不能为空' },
  { pattern: /^1[3-9]\d{9}$/, message: '手机号格式不正确' }
]

// 2. 密码校验
const passwordRules = [
  { required: true, message: '密码不能为空' },
  { pattern: /^\w{8,24}$/, message: '密码长度在8~24个字符' }
]

// 3. 验证码校验
const codeRules = [
  { required: true, message: '验证码不能为空' },
  { pattern: /^\d{6}$/, message: '验证码长度是6个字符' }
]

export { mobileRules, passwordRules, codeRules }
